Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: re-enable the spellchecker when new language list set #26119

Merged
merged 2 commits into from
Oct 23, 2020

Conversation

MarshallOfSound
Copy link
Member

@MarshallOfSound MarshallOfSound commented Oct 22, 2020

Chromium recently added prefs logic to disable the spellchecker if the list of languages is empty, but the logic to re-enable if the languages are provided again lives in another part of Chromium. This change makes it so our API re-enables the spellchecker correctly when required.

Refs: https://chromium-review.googlesource.com/c/chromium/src/+/2390300

Notes: Fixed issue where setting the spellchecker languages to an empty array would permanently disable the spellchecker till the end of time

@MarshallOfSound MarshallOfSound added fast-track 🚅 Indicates that this PR is intended to bypass the 24 hour rule. Needs approval from Releases target/11-x-y labels Oct 22, 2020
@@ -2,9 +2,19 @@ import * as childProcess from 'child_process';
import * as path from 'path';
import * as http from 'http';
import * as v8 from 'v8';
import { SuiteFunction, TestFunction } from 'mocha';
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This stuff I just added because it was annoying me, you can now do ifdescribe().only

Chromium recently added prefs logic to disable the spellchecker if the list of languages is empty, but the logic to re-enable if the languages are provided again lives in another part of Chromium.  This change makes it so our API re-enables the spellchecker correctly when required.
@MarshallOfSound MarshallOfSound merged commit 9d18f9d into master Oct 23, 2020
@release-clerk
Copy link

release-clerk bot commented Oct 23, 2020

Release Notes Persisted

Fixed issue where setting the spellchecker languages to an empty array would permanently disable the spellchecker till the end of time

@MarshallOfSound MarshallOfSound deleted the spellcheck-toggle-fix branch October 23, 2020 07:34
@trop
Copy link
Contributor

trop bot commented Oct 23, 2020

I was unable to backport this PR to "11-x-y" cleanly;
you will need to perform this backport manually.

MarshallOfSound added a commit that referenced this pull request Oct 23, 2020
* fix: re-enable the spellchecker when new language list set

Chromium recently added prefs logic to disable the spellchecker if the list of languages is empty, but the logic to re-enable if the languages are provided again lives in another part of Chromium.  This change makes it so our API re-enables the spellchecker correctly when required.

* chore: fix lint
@trop
Copy link
Contributor

trop bot commented Oct 23, 2020

@MarshallOfSound has manually backported this PR to "11-x-y", please check out #26129

MarshallOfSound added a commit that referenced this pull request Oct 23, 2020
* fix: re-enable the spellchecker when new language list set

Chromium recently added prefs logic to disable the spellchecker if the list of languages is empty, but the logic to re-enable if the languages are provided again lives in another part of Chromium.  This change makes it so our API re-enables the spellchecker correctly when required.

* chore: fix lint
MarshallOfSound added a commit that referenced this pull request Oct 23, 2020
…26129)

* fix: re-enable the spellchecker when new language list set

Chromium recently added prefs logic to disable the spellchecker if the list of languages is empty, but the logic to re-enable if the languages are provided again lives in another part of Chromium.  This change makes it so our API re-enables the spellchecker correctly when required.

* chore: fix lint
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
fast-track 🚅 Indicates that this PR is intended to bypass the 24 hour rule. Needs approval from Releases
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants